import request from "@/utils/request";

// 查询账户转账列表
export function listAccountTransfer(query) {
  return request({
    url: "/system/accountTransfer/list",
    method: "get",
    params: query,
  });
}

// 查询账户转账详细
export function getAccountTransfer(id) {
  return request({
    url: "/system/accountTransfer/" + id,
    method: "get",
  });
}

// 新增账户转账
export function addAccountTransfer(data) {
  return request({
    url: "/system/accountTransfer",
    method: "post",
    data: data,
  });
}

// 修改账户转账
export function updateAccountTransfer(data) {
  return request({
    url: "/system/accountTransfer",
    method: "put",
    data: data,
  });
}

// 删除账户转账
export function delAccountTransfer(id) {
  return request({
    url: "/system/accountTransfer/" + id,
    method: "delete",
  });
}

// 审核
export function auditAccountTransfer(data) {
  return request({
    url: "/system/accountTransfer/audit",
    method: "put",
    data: data,
  });
}
